﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GBG_DBM.Support.DAL.Entities
{
    public class Freight
    {
#region variable
        private string _FreightType;
        private string _Supplier;
        private string _Origin;
        private string _RateType;
        private float _ProductWeight;
        private float _PackagingWeight;
        private int _SupplierPrice;
        private float _VariableFuel;
        private float _Estimated;
        private float _Total;

        public float Total
        {
            get { return _Total; }
            set { _Total = value; }
        }

        public float Estimated
        {
            get { return _Estimated; }
            set { _Estimated = value; }
        }

#endregion
        #region
        public float VariableFuel
        {
            get { return _VariableFuel; }
            set { _VariableFuel = value; }
        }
        public string FreightType
        {
            get { return _FreightType; }
            set { _FreightType = value; }
        }

        public int SupplierPrice
        {
            get { return _SupplierPrice; }
            set { _SupplierPrice = value; }
        }
        public float ProductWeight
        {
            get { return _ProductWeight; }
            set { _ProductWeight = value; }
        }

        public float PackagingWeight
        {
            get { return _PackagingWeight; }
            set { _PackagingWeight = value; }
        }
        public string RateType
        {
            get { return _RateType; }
            set { _RateType = value; }
        }
        public string Origin
        {
            get { return _Origin; }
            set { _Origin = value; }
        }

        public string Supplier
        {
            get { return _Supplier; }
            set { _Supplier = value; }
        }
        public decimal TotalWeight() 
        {
            return Convert.ToInt32(_ProductWeight + _PackagingWeight);
        }
        public float EstimatedCost() 
        {
            return _SupplierPrice / _ProductWeight;
        }
#endregion
    }
}
